import request from '@/utils/request.js'


export function getTimeList(data){
	return request({
		url:'/record/time/my/list',
		method:'get',
		data:data
	})
}

export function getTimeListToday(data){
	return request({
		url:'/record/time/list/today',
		method:'get',
		data:data
	})
}

export function addTime(data){
	return request({
		url:'/record/time',
		method:'post',
		data:data
	})
}

export function deleteTime(data){
	return request({
		url:'/record/time/'+data,
		method:'delete'
	})
}

export function getTime(data){
	return request({
		url:'/record/time/'+data,
		method:'get'
	})
}